package matlap.client.services.distributor;


import java.util.List;

import matlap.shared.Distributor;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface DistributorServiceAsync {

	void getDistributorsNumber(AsyncCallback<Integer> callback);

	void getDistributors(AsyncCallback<List<Distributor>> callback);

	void selectDistributorsName(AsyncCallback<List<Distributor>> callback);

	void getDistributorsByName(String name,
			AsyncCallback<List<Distributor>> callback);

	void updateDistributors(String username, String firstname, String lastname,
			String address, AsyncCallback<Void> callback);

	void deleteDistributors(String username, AsyncCallback<Void> callback);

	void getDistributorsByUserName(String username,
			AsyncCallback<Distributor> callback);

	void getUserNames(AsyncCallback<List<String>> callback);

}
